package com.xu.cloud.auth.exception;

import com.xu.cloud.common.enums.ExceptionEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 认证服务错误码枚举
 *
 * @author xuguan
 * @since 2025/2/23
 */
@AllArgsConstructor
@Getter
public enum AuthErrorCodeEnum implements ExceptionEnum<AuthErrorCodeEnum> {
    ILLEGAL_TOKEN("AUTH0001", "token非法"),
    PASSWORD_NOT_EXIST("AUTH0002", "密码数据不存在"),
    USER_INFO_NOT_EXIST("AUTH0003", "用户信息不存在"),
    LOGIN_NAME_OR_PASSWORD_ERROR("AUTH0004", "用户名或密码错误"),
    MESSAGE_CODE_EXPIRE("AUTH0005", "验证码已过期"),
    MESSAGE_CODE_INVALID("AUTH0006", "验证码无效"),
    THIRD_PARTY_LOGIN_NOT_SUPPORT("AUTH0007", "暂不支持当前第三方登录应用"),
    THIRD_PARTY_OAUTH2_FAIL("AUTH0008", "第三方登录应用授权失败"),
    ;

    private final String code;
    private final String message;
}
